package com.zs.oauth2.oauth2authorizationserver.entity;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.*;

import java.time.LocalDateTime;

/**
 * @author Madison
 * @date 2021-04-05 15:57:30
 */
@Entity
@DynamicInsert
@Table(name = "app_users")
@Getter
@Setter
public class AppUsersEntity {
    /**
     * 主键ID
     */
    @Id
    @Column(name = "user_id")
    private Integer userId;
    /**
     * 用户名
     */
    @Column(name = "username")
    private String username;
    @Column(name = "password")
    private String password;
    /**
     * 随机盐
     */
    @Column(name = "salt")
    private String salt;
    /**
     * 简介
     */
    @Column(name = "phone")
    private String phone;
    /**
     * 头像
     */
    @Column(name = "avatar")
    private String avatar;
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private LocalDateTime createTime;
    /**
     * 修改时间
     */
    @Column(name = "update_time")
    private LocalDateTime updateTime;
    /**
     * 0-正常，9-锁定
     */
    @Column(name = "lock_flag")
    private String lockFlag;
    /**
     * 0-正常，1-删除
     */
    @Column(name = "del_flag")
    private String delFlag;

}
